import request from '../utils/request';

export const saveArticle = payload =>
  request('/api/articles/add', {
    method: 'POST',
    body: payload,
  });

export const fetchLatestApi = () => request('/api/articles/latest');

export async function fetchArticleByIdApi(Articleid) {
  console.log(12);
  console.log(Articleid);
  return request('/api/articles/show/' + Articleid);
}
